package com.csc.banking.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="emails")
public class Email {
	@Id
	private Integer emailId;
//	private String accountNumber;
	private String email;
	
	@ManyToOne
	@JoinColumn(name="accountNumber")
	private Account accounts;

	public Integer getEmailId() {
		return emailId;
	}

	public void setEmailId(Integer emailId) {
		this.emailId = emailId;
	}

//	public BigInteger getAccountNumber() {
//		return accountNumber;
//	}
//
//	public void setAccountNumber(BigInteger accountNumber) {
//		this.accountNumber = accountNumber;
//	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Account getAccounts() {
		return accounts;
	}

	public void setAccounts(Account accounts) {
		this.accounts = accounts;
	}
	

}
